import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/hello',
    },
    {
      path: '/hello',
      name: 'home',
      component: () => import('../views/Home.vue')
    },
    {
      path: '/testa',
      name: 'testa',
      component: () => import('../views/TestA.vue')
    },
    {
      path: '/testb',
      name: 'testb',
      component: () => import('../views/TestB.vue')
    }
  ]
})

export default router
